Move private widget path functions away
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2016 12:37:50 +0000 (13:37 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2016 14:19:51 +0000 (15:19 +0100)
We don't put private functions in public headers anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=761339

gtk/Makefile.am
gtk/gtkcssnodedeclaration.c
gtk/gtkwidget.c
gtk/gtkwidgetpath.c
gtk/gtkwidgetpath.h
gtk/gtkwidgetpathprivate.h [new file with mode: 0644]

index 5afd1a101ba6863b3f12a82f8d90b3171eeb51c9..53b163f7fb306c461cdb7c4731d080feeeb88843 100644 (file)
@@ -560,6 +560,7 @@ gtk_private_h_sources =             \
        gtktreedatalist.h       \
        gtktreeprivate.h        \
        gtkwidgetprivate.h      \
+       gtkwidgetpathprivate.h  \
        gtkwin32themeprivate.h  \
        gtkwindowprivate.h      \
        gtktreemenu.h           \
index 78441c8cb0ae79d6bec750e0716b4cb1890e244c..ca6324aec62cf18289a62ca620e1acdbb42f8fac 100644 (file)
@@ -18,6 +18,7 @@
 #include "config.h"
 
 #include "gtkcssnodedeclarationprivate.h"
+#include "gtkwidgetpathprivate.h"
 
 #include <string.h>
 
index 7a05c5654f121aebd5a77898c7a1f7777a1196b7..3b7b0624367d2f0fdc4ac7cd19fd30eecf11bd71 100644 (file)
@@ -68,6 +68,7 @@
 #include "a11y/gtkwidgetaccessible.h"
 #include "gtkapplicationprivate.h"
 #include "gtkgestureprivate.h"
+#include "gtkwidgetpathprivate.h"
 
 /* for the use of round() */
 #include "fallback-c89.c"
index f0297dff3284ea6c779b323e0149b22d43a507fc..2a5ad1987144bd350375abdcc9a44ee1f8efdd5e 100644 (file)
@@ -26,6 +26,7 @@
 #include "gtkstylecontextprivate.h"
 #include "gtktypebuiltins.h"
 #include "gtkwidget.h"
+#include "gtkwidgetpathprivate.h"
 
 /**
  * SECTION:gtkwidgetpath
index 6ef1dbc7bda0339d64403ceb405845f37b7ac975..52b03b56030f98f3d8d9dc3cbc7246937deb076c 100644 (file)
@@ -171,11 +171,6 @@ GDK_AVAILABLE_IN_ALL
 gboolean        gtk_widget_path_has_parent (const GtkWidgetPath *path,
                                             GType                type);
 
-/* private API goes here */
-
-void gtk_widget_path_iter_add_qclass       (GtkWidgetPath       *path,
-                                            gint                 pos,
-                                            GQuark               qname);
 
 G_END_DECLS
 
diff --git a/gtk/gtkwidgetpathprivate.h b/gtk/gtkwidgetpathprivate.h
new file mode 100644 (file)
index 0000000..5a7bfb5
--- /dev/null
@@ -0,0 +1,31 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2010 Carlos Garnacho <carlosg@gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_WIDGET_PATH_PRIVATE_H__
+#define __GTK_WIDGET_PATH_PRIVATE_H__
+
+#include <gtk/gtkwidgetpath.h>
+
+G_BEGIN_DECLS
+
+void gtk_widget_path_iter_add_qclass (GtkWidgetPath *path,
+                                      gint           pos,
+                                      GQuark         qname);
+
+G_END_DECLS
+
+#endif /* __GTK_WIDGET_PATH_PRIVATE_H__ */